﻿@model  NewRen.Models.Plate
@using NewRen.Models
@{
    ViewBag.Title = "板块显示";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
    List<PlateOwner> owners = ViewBag.Owners as List<PlateOwner>;
}

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>板块显示</h2>
        <ol class="breadcrumb">
            <li>
                <a href="/Admin/Home/Index">后台管理</a>
            </li>
            <li>
                <a>论坛管理</a>
            </li>
            <li>
                <a href="#">板块显示</a>
            </li>
        </ol>
    </div>
</div>

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>板块显示 <small>@Model.Title</small> <small><a href="/Admin/Bbs/Forum/@Model.ID">板块管理</a></small></h5>
                </div>
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <table class="detail-table">
                            <tr>
                                <td class="row-title">板块名称</td>
                                <td>@Model.Title</td>
                            </tr>
                            <tr>
                                <td class="row-title">描述</td>
                                <td>@Model.Description</td>
                            </tr>
                            <tr>
                                <td class="row-title">图片</td>
                                <td>
                                    @if (Model.Picture != null)
                                    {
                                        <img src="/Admin/Bbs/ShowForumPicture/@Model.ID" alt="@Model.Title" width="60" height="60" />
                                    }
                                    else
                                    {
                                        <span>无</span>
                                    }
                                </td>
                            </tr>
                            <tr>
                                <td class="row-title">发布时间</td>
                                <td>@Model.Time</td>
                            </tr>
                            <tr>
                                <td class="row-title">举报</td>
                                <td>@Model.Report</td>
                            </tr>
                            <tr>
                                <td class="row-title">是否关闭</td>
                                <td>@Model.IsColse</td>
                            </tr>
                            <tr>
                                <td class="row-title">浏览</td>
                                <td>@Model.Browses</td>
                            </tr>
                            <tr>
                                <td class="row-title">举报</td>
                                <td>@Model.Report</td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>板主</h5>
                </div>
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <table class="table">
                            <tr>
                                <th>用户ID</th>
                                <th>用户名称</th>
                                <th>操作</th>
                            </tr>
                            @foreach (var item in owners)
                            {
                                <tr id="@item.ID">
                                    <td>@item.User.ID</td>
                                    <td>@item.User.UserName</td>
                                    <td><a href="javascript:deleteDialog('/Admin/Bbs/PlateOwnerDelete/@item.ID?sid=@ViewBag.SID',@item.ID);">删除</a></td>
                                </tr>
                            }
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>